import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/login/login'
import Register from '@/views/Register/Register'
import Home from '@/views/home/home'
import Movie from '@/components/movie/movie'
import top250 from '@/components/movie/top250'
import goTop from '@/components/common/goTop'

//
import movieDetail from '@/components/movie/movieDetail'
// import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
  routes: [
	{
		path:"/login",
		component:Login
	},
	{
		path:"/register",
		component:Register
	},
	{
		path:"/home",
		component:Home,
		children:[
			{
				path:"/movie",
				component:Movie
			 },
			 {
				path:"/music",
				component:Movie
			 },
			 {
				path:"/top250",
				component:top250
			 },
			 {
				path:"/book",
				component:Movie
			 },
			 {
				path:"/picture",
				component:Movie
			 }
		]
	},
	{
    path: '/home/movie/detail/:id',
    component:movieDetail
  }
	// {
	// 	path:"*",
	// 	redirect:'./login'
	// }
  ]
})
